import Skill from "./skill.js";
import Skin from "./skin.js";
// 英雄类 
export default class Hero{
    constructor(name,ico,skillsConfig,skinsConfig){
        this.name = name;
        this.ico = ico;
        this.skills = [];
        skillsConfig.forEach(skill=>{
            this.skills.push(new Skill(skill))
        })

        this.skins = [];
        skinsConfig.forEach(skin=>{
            this.skins.push(new Skin(skin));
        })
    }
}